// 赋予在小恐龙上的外部脚本
export default class HitTest extends Laya.Script {
    onTriggerEnter: LayaPlus.onTrigger = (other, self, contact) => {
        if (other.owner?.name === "wall") {
            (self.owner as any)?.control?.destroy();
        }
        // console.log(other);
        if (other.owner?.name === "slime") {
            const last = ((other.owner as any).HP -= 10);
            console.log(last);
        }
    };
}
